/**
 * Aptana Studio
 * Copyright (c) 2005-2011 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the GNU Public License (GPL) v3 (with exceptions).
 * Please see the license.html included with this distribution for details.
 * Any modifications to this file must keep this entire header intact.
 */
package com.aptana.scripting;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

public class BundleConverterTest
{
	@Test
	public void testConvertkeybindingTurnsShiftPlusLowercaseLetterIntoUppercaseLetter() throws Exception
	{
		assertEquals("M4+Q", BundleConverter.convertKeyBinding("^q"));
	}

	@Test
	public void testConvertkeybindingF1() throws Exception
	{
		assertEquals("F1", BundleConverter.convertKeyBinding(""));
	}

	@Test
	public void testConvertkeybindingF3() throws Exception
	{
		assertEquals("F3", BundleConverter.convertKeyBinding(""));
	}

	@Test
	public void testConvertkeybindingF5() throws Exception
	{
		assertEquals("F5", BundleConverter.convertKeyBinding(""));
	}

	@Test
	public void testAltEscape() throws Exception
	{
		assertEquals("M3+ESCAPE", BundleConverter.convertKeyBinding("~"));
	}

	@Test
	public void testShiftReturn() throws Exception
	{
		assertEquals("M2+ENTER", BundleConverter.convertKeyBinding("$\n"));
	}

	@Test
	public void testControlAltDelete() throws Exception
	{
		assertEquals("M4+M3+DEL", BundleConverter.convertKeyBinding("^~"));
	}

}
